//store存储全局变量
import Vue from 'vue'
import Vuex from '../../src'
//import Vuex from 'vuex'
import mutations from './mutations'
//import createLogger from 'vuex/dist/logger'

Vue.use(Vuex);

export default new Vuex.Store({
    state: {
        loginState:{
            status:true,
        },
        userInfo: {//登录信息
            dzycode: '',
            lgnname: '',
            logintime: '',
            shjbumen: '',
            token: '',
            xshy: '',
            xshyid:'',
            zjm: ''
        },
        mainTable:{},//零售表格数据
        popPerfect: {
            status:true,
            msg:{
                ysje:0,//应该收金额
                bill:0,//收款金额
                discount:0,//优惠金额
                zhaol:0,//找零
                moling:0,//抹零
            }
        },
        ui: {
            toast: {
                status: false,
                txt: null
            },
            mask: {
                status: false
            }
        } 
    },
    mutations,
})